.class public Lcom/donson/momark/activity/AdActivity;
.super Landroid/app/Activity;


# static fields
.field private static a:Landroid/widget/RelativeLayout;

.field private static h:Landroid/widget/LinearLayout;

.field private static j:Ljava/util/List;


# instance fields
.field private d:Landroid/widget/RelativeLayout$LayoutParams;

.field private e:Landroid/widget/LinearLayout$LayoutParams;

.field private g:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 4

    const/4 v3, -0x1

    const/4 v2, 0x1

    invoke-virtual {p0}, Lcom/donson/momark/activity/AdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "myActivity"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "CircleViewFlowExample"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {p0, v2}, Lcom/donson/momark/activity/AdActivity;->requestWindowFeature(I)Z

    invoke-virtual {p0, v2}, Lcom/donson/momark/activity/AdActivity;->setRequestedOrientation(I)V

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->h:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v2}, Lcom/donson/momark/activity/AdActivity;->getViewActivity(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/donson/momark/activity/AdActivity;->e:Landroid/widget/LinearLayout$LayoutParams;

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->h:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/donson/momark/activity/AdActivity;->e:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/activity/AdActivity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string v1, "DownActivity"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->a:Landroid/widget/RelativeLayout;

    const/4 v1, 0x2

    invoke-virtual {p0, v1}, Lcom/donson/momark/activity/AdActivity;->getViewActivity(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->a:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/donson/momark/activity/AdActivity;->d:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/activity/AdActivity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    :cond_2
    const-string v1, "WebActivity"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->a:Landroid/widget/RelativeLayout;

    const/4 v1, 0x3

    invoke-virtual {p0, v1}, Lcom/donson/momark/activity/AdActivity;->getViewActivity(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    sget-object v0, Lcom/donson/momark/activity/AdActivity;->a:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/donson/momark/activity/AdActivity;->d:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/activity/AdActivity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method


# virtual methods
.method public getViewActivity(I)Landroid/view/View;
    .locals 5

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :pswitch_0
    new-instance v0, Lcom/donson/momark/view/view/d;

    sget-object v1, Lcom/donson/momark/activity/AdActivity;->j:Ljava/util/List;

    invoke-direct {v0, p0, v1}, Lcom/donson/momark/view/view/d;-><init>(Landroid/content/Context;Ljava/util/List;)V

    invoke-virtual {v0}, Lcom/donson/momark/view/view/d;->d()Landroid/widget/LinearLayout;

    move-result-object v0

    goto :goto_0

    :pswitch_1
    new-instance v0, Lcom/donson/momark/view/view/f;

    invoke-virtual {p0}, Lcom/donson/momark/activity/AdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "isDowFile"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/donson/momark/activity/AdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "isBack"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    invoke-virtual {p0}, Lcom/donson/momark/activity/AdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "urlDown"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/donson/momark/view/view/f;-><init>(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    invoke-virtual {v0}, Lcom/donson/momark/view/view/f;->g()Landroid/widget/RelativeLayout;

    move-result-object v0

    goto :goto_0

    :pswitch_2
    invoke-virtual {p0}, Lcom/donson/momark/activity/AdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "url"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/activity/AdActivity;->g:Ljava/lang/String;

    new-instance v0, Lcom/donson/momark/view/view/n;

    iget-object v1, p0, Lcom/donson/momark/activity/AdActivity;->g:Ljava/lang/String;

    invoke-direct {v0, p0, v1}, Lcom/donson/momark/view/view/n;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/donson/momark/view/view/n;->d()Landroid/widget/RelativeLayout;

    move-result-object v0

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    const/4 v1, -0x1

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/donson/momark/activity/AdActivity;->setRequestedOrientation(I)V

    new-instance v0, Landroid/widget/RelativeLayout;

    invoke-direct {v0, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/donson/momark/activity/AdActivity;->a:Landroid/widget/RelativeLayout;

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/donson/momark/activity/AdActivity;->h:Landroid/widget/LinearLayout;

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/donson/momark/activity/AdActivity;->d:Landroid/widget/RelativeLayout$LayoutParams;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/donson/momark/activity/AdActivity;->e:Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {p0}, Lcom/donson/momark/activity/AdActivity;->a()V

    return-void
.end method

.method public startCirclViewactivity(Landroid/content/Context;Ljava/util/List;)V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    sput-object p2, Lcom/donson/momark/activity/AdActivity;->j:Ljava/util/List;

    const-string v1, "myActivity"

    const-string v2, "CircleViewFlowExample"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public startDownActivity(Landroid/content/Context;ZLjava/lang/String;)V
    .locals 4

    if-eqz p2, :cond_0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v1, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "myActivity"

    const-string v3, "DownActivity"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "isDowFile"

    const-string v3, "true"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "isBack"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string v2, "urlDown"

    invoke-virtual {v1, v2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p1, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    move-object v0, p1

    check-cast v0, Lcom/donson/momark/activity/AdActivity;

    move-object v1, v0

    invoke-virtual {v1}, Lcom/donson/momark/activity/AdActivity;->finish()V

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v1, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "myActivity"

    const-string v3, "DownActivity"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "isDowFile"

    const-string v3, "false"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "urlDown"

    invoke-virtual {v1, v2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "isBack"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p1, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public statWebActivity(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "url"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "myActivity"

    const-string v2, "WebActivity"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
